
package org.ezplatform.office.forum.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import org.ezplatform.core.annotation.MetaData;
import org.ezplatform.core.entity.BaseCorpEntity;

@MetaData(value = "帖子信息统计")
@Entity(name = "ForumPostStatistics")
@Table(name = "oa_forum_post_statistics", uniqueConstraints = { @UniqueConstraint(columnNames = "id") })
public class ForumPostStatistics extends BaseCorpEntity{
	
	
	/**
	 * @Fields serialVersionUID :
	 */
	
	private static final long serialVersionUID = -4293040018318539484L;

	/**
	 * 帖子id
	 */
	@MetaData(value = "帖子id")
    @Column(name = "post_id", length = 32)
	private String postId;
	
	/**
	 * 浏览数
	 */
	@MetaData(value = "浏览数")
    @Column(name = "view_count")
	private int viewCount;
	
	/**
	 * 回帖数
	 */
	@MetaData(value = "回帖数")
    @Column(name = "reply_count")
	private int replyCount;
	
	/**
	 * 最后回帖id
	 */
	@MetaData(value = "最后回帖id")
    @Column(name = "last_reply_id", length = 32)
	private String lastReplyId;
	
	/**
	 * 最后回帖时间
	 */
	@MetaData(value = "最后回帖时间")
    @Column(name = "last_reply_date")
	private Date lastReplyDate;
	
	/**
	 * 最后回帖人
	 */
	@MetaData(value = "最后回帖人")
    @Column(name = "last_reply_user", length = 32)
	private String lastReplyUser;

	public String getPostId() {
	
		return postId;
	}

	public void setPostId(String postId) {
	
		this.postId = postId;
	}

	public int getViewCount() {
	
		return viewCount;
	}

	public void setViewCount(int viewCount) {
	
		this.viewCount = viewCount;
	}

	public int getReplyCount() {
	
		return replyCount;
	}

	public void setReplyCount(int replyCount) {
	
		this.replyCount = replyCount;
	}

	public String getLastReplyId() {
	
		return lastReplyId;
	}

	public void setLastReplyId(String lastReplyId) {
	
		this.lastReplyId = lastReplyId;
	}

	public Date getLastReplyDate() {
	
		return lastReplyDate;
	}

	public void setLastReplyDate(Date lastReplyDate) {
	
		this.lastReplyDate = lastReplyDate;
	}

	public String getLastReplyUser() {
	
		return lastReplyUser;
	}

	public void setLastReplyUser(String lastReplyUser) {
	
		this.lastReplyUser = lastReplyUser;
	}
	
}
